import 'package:flutter/material.dart';

class TitleBar extends StatelessWidget {

  final String title;

  TitleBar(this.title);

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        SizedBox(height: 30,),
        Row(
          children: [
            SizedBox(width: 20,),
            IconButton(
              icon: Icon(Icons.arrow_back_ios, size: 24,color: Colors.black,),
              onPressed: () {
                Navigator.pop(context);
              },
            ),
            Expanded(child: Center(child: Text(title, style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)))),
            SizedBox(width: 70,),
          ],
        ),
      ],
    );
  }
}